/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package projetofinal;

import javax.swing.JOptionPane;

/**
 *
 * @author Aluno
 */
public class DemoMenu extends javax.swing.JFrame {

    /**
     * Creates new form DemoMenu
     */
    
    public DemoMenu() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        menuPopUp1 = new javax.swing.JPopupMenu();
        menuPopUpAbrir = new javax.swing.JMenuItem();
        popUpMenuSeparador1 = new javax.swing.JPopupMenu.Separator();
        popUpMenuCliente = new javax.swing.JMenuItem();
        popUpMenuSeparador = new javax.swing.JPopupMenu.Separator();
        popUpMenuFuncionario = new javax.swing.JMenuItem();
        popUpMenuSair = new javax.swing.JMenuItem();
        buttonGroup1 = new javax.swing.ButtonGroup();
        deskTopPrincipal = new javax.swing.JDesktopPane();
        jIFrameCadastroClientes = new javax.swing.JInternalFrame();
        jpMenu = new javax.swing.JPanel();
        btnInsere = new javax.swing.JButton();
        btnAtualiza = new javax.swing.JButton();
        btnDeleta = new javax.swing.JButton();
        btnAjuda = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jTextField1 = new javax.swing.JTextField();
        jTextField2 = new javax.swing.JTextField();
        rbMasculino = new javax.swing.JRadioButton();
        rbFeminino = new javax.swing.JRadioButton();
        cbCodigo = new javax.swing.JComboBox();
        cbStatus = new javax.swing.JComboBox();
        btnExecuta = new javax.swing.JButton();
        btnSair = new javax.swing.JButton();
        cbCultura = new javax.swing.JCheckBox();
        cdEsporte = new javax.swing.JCheckBox();
        cdSaude = new javax.swing.JCheckBox();
        barraMenu = new javax.swing.JMenuBar();
        menuArquivo = new javax.swing.JMenu();
        menuNovo = new javax.swing.JMenuItem();
        menuAbrir = new javax.swing.JMenuItem();
        menuSalvar = new javax.swing.JMenuItem();
        separadorMenuArquivo = new javax.swing.JPopupMenu.Separator();
        menuSair = new javax.swing.JMenuItem();
        menuCadastro = new javax.swing.JMenu();
        menuCliente = new javax.swing.JMenuItem();
        separadorMenuCadastro = new javax.swing.JPopupMenu.Separator();
        menuFuncionario = new javax.swing.JMenuItem();
        menuConsulta = new javax.swing.JMenu();
        menuConsultaCliente = new javax.swing.JMenu();
        menuClienteCodigo = new javax.swing.JMenuItem();
        menuClienteNome = new javax.swing.JMenuItem();
        separadorMenuConsulta = new javax.swing.JPopupMenu.Separator();
        menuConsultaFuncionario = new javax.swing.JMenu();
        menuFuncionaroNome = new javax.swing.JMenuItem();
        menuFuncionarioSalario = new javax.swing.JMenuItem();
        menuAjuda = new javax.swing.JMenu();
        menuDuvidas = new javax.swing.JMenuItem();
        menuSobre = new javax.swing.JMenuItem();

        menuPopUpAbrir.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.CTRL_MASK));
        menuPopUpAbrir.setMnemonic('A');
        menuPopUpAbrir.setText("Abrir");
        menuPopUpAbrir.setToolTipText("Abrir arquivo");
        menuPopUpAbrir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuPopUpAbrirActionPerformed(evt);
            }
        });
        menuPopUp1.add(menuPopUpAbrir);
        menuPopUp1.add(popUpMenuSeparador1);

        popUpMenuCliente.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.CTRL_MASK));
        popUpMenuCliente.setMnemonic('C');
        popUpMenuCliente.setText("Cliente");
        popUpMenuCliente.setToolTipText("Cadastro de cliente");
        popUpMenuCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                popUpMenuClienteActionPerformed(evt);
            }
        });
        menuPopUp1.add(popUpMenuCliente);
        menuPopUp1.add(popUpMenuSeparador);

        popUpMenuFuncionario.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F, java.awt.event.InputEvent.CTRL_MASK));
        popUpMenuFuncionario.setMnemonic('F');
        popUpMenuFuncionario.setText("Funcionário");
        popUpMenuFuncionario.setToolTipText("Cadastro de funcionários");
        menuPopUp1.add(popUpMenuFuncionario);

        popUpMenuSair.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK));
        popUpMenuSair.setMnemonic('S');
        popUpMenuSair.setText("Sair");
        popUpMenuSair.setToolTipText("Sair do sistema");
        popUpMenuSair.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                popUpMenuSairActionPerformed(evt);
            }
        });
        menuPopUp1.add(popUpMenuSair);

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Sistema de cadastro de clientes e funcionários");
        addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                formMouseReleased(evt);
            }
        });

        deskTopPrincipal.setBackground(new java.awt.Color(240, 240, 240));
        deskTopPrincipal.setPreferredSize(getPreferredSize());

        jIFrameCadastroClientes.setClosable(true);
        jIFrameCadastroClientes.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        jIFrameCadastroClientes.setIconifiable(true);
        jIFrameCadastroClientes.setMaximizable(true);
        jIFrameCadastroClientes.setResizable(true);
        jIFrameCadastroClientes.setTitle("Cadastro de Clientes");
        jIFrameCadastroClientes.setToolTipText("Cadastro de clientes");
        jIFrameCadastroClientes.setVisible(false);

        jpMenu.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        btnInsere.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imgs/icones/PLUS.gif"))); // NOI18N
        btnInsere.setText("Insere");
        btnInsere.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        btnInsere.setContentAreaFilled(false);
        btnInsere.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        btnInsere.setPreferredSize(new java.awt.Dimension(91, 23));
        btnInsere.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnInsereActionPerformed(evt);
            }
        });

        btnAtualiza.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imgs/icones/DETALHES.gif"))); // NOI18N
        btnAtualiza.setText("Atualiza");
        btnAtualiza.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAtualizaActionPerformed(evt);
            }
        });

        btnDeleta.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imgs/icones/DELETE.gif"))); // NOI18N
        btnDeleta.setText("Deleta");
        btnDeleta.setMaximumSize(new java.awt.Dimension(91, 25));
        btnDeleta.setMinimumSize(new java.awt.Dimension(91, 25));
        btnDeleta.setPreferredSize(new java.awt.Dimension(91, 25));
        btnDeleta.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnDeletaActionPerformed(evt);
            }
        });

        btnAjuda.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imgs/icones/HELP.gif"))); // NOI18N
        btnAjuda.setText("Ajuda");
        btnAjuda.setPreferredSize(new java.awt.Dimension(91, 25));
        btnAjuda.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnAjudaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jpMenuLayout = new javax.swing.GroupLayout(jpMenu);
        jpMenu.setLayout(jpMenuLayout);
        jpMenuLayout.setHorizontalGroup(
            jpMenuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpMenuLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(btnInsere, javax.swing.GroupLayout.DEFAULT_SIZE, 126, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnAtualiza, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnDeleta, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnAjuda, javax.swing.GroupLayout.DEFAULT_SIZE, 128, Short.MAX_VALUE)
                .addGap(64, 64, 64))
        );
        jpMenuLayout.setVerticalGroup(
            jpMenuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jpMenuLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jpMenuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnInsere, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnAtualiza)
                    .addComponent(btnDeleta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnAjuda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jLabel1.setText("Código do cliente");

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imgs/icones/Obrigatorio.gif"))); // NOI18N
        jLabel2.setText("Nome do cliente");

        jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imgs/icones/Obrigatorio.gif"))); // NOI18N
        jLabel3.setText("Endereço");

        jLabel4.setText("Estado civil");

        jLabel5.setText("Sexo");

        jLabel6.setText("Áreas de interesse");

        buttonGroup1.add(rbMasculino);
        rbMasculino.setText("Masculino");

        buttonGroup1.add(rbFeminino);
        rbFeminino.setText("Feminino");

        cbCodigo.setEnabled(false);

        cbStatus.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Solteiro", "Casado", "Divorciado", "Viúvo" }));
        cbStatus.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cbStatusActionPerformed(evt);
            }
        });

        btnExecuta.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imgs/icones/EXECUTE.gif"))); // NOI18N
        btnExecuta.setText("Executa");

        btnSair.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imgs/icones/CLOSE.gif"))); // NOI18N
        btnSair.setText("Sair");
        btnSair.setMaximumSize(new java.awt.Dimension(91, 25));
        btnSair.setMinimumSize(new java.awt.Dimension(91, 25));
        btnSair.setPreferredSize(new java.awt.Dimension(91, 25));
        btnSair.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSairActionPerformed(evt);
            }
        });

        cbCultura.setText("Cultura");
        cbCultura.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cbCulturaActionPerformed(evt);
            }
        });

        cdEsporte.setText("Esporte");

        cdSaude.setText("Saúde");

        javax.swing.GroupLayout jIFrameCadastroClientesLayout = new javax.swing.GroupLayout(jIFrameCadastroClientes.getContentPane());
        jIFrameCadastroClientes.getContentPane().setLayout(jIFrameCadastroClientesLayout);
        jIFrameCadastroClientesLayout.setHorizontalGroup(
            jIFrameCadastroClientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jIFrameCadastroClientesLayout.createSequentialGroup()
                .addGap(26, 26, 26)
                .addGroup(jIFrameCadastroClientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel2)
                    .addComponent(jLabel1)
                    .addComponent(jLabel3)
                    .addComponent(jLabel4)
                    .addComponent(jLabel5)
                    .addComponent(jLabel6))
                .addGap(18, 18, 18)
                .addGroup(jIFrameCadastroClientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jTextField1)
                    .addComponent(jTextField2)
                    .addGroup(jIFrameCadastroClientesLayout.createSequentialGroup()
                        .addGroup(jIFrameCadastroClientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(btnSair, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jIFrameCadastroClientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(cbCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(cbStatus, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGroup(jIFrameCadastroClientesLayout.createSequentialGroup()
                                    .addComponent(rbMasculino)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(rbFeminino))
                                .addGroup(jIFrameCadastroClientesLayout.createSequentialGroup()
                                    .addComponent(cbCultura)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(cdSaude)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(cdEsporte))))
                        .addGap(0, 20, Short.MAX_VALUE)))
                .addGap(93, 93, 93))
            .addGroup(jIFrameCadastroClientesLayout.createSequentialGroup()
                .addGap(105, 105, 105)
                .addComponent(btnExecuta)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(jIFrameCadastroClientesLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jpMenu, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jIFrameCadastroClientesLayout.setVerticalGroup(
            jIFrameCadastroClientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jIFrameCadastroClientesLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jpMenu, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(122, 122, 122)
                .addGroup(jIFrameCadastroClientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(cbCodigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jIFrameCadastroClientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel2))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jIFrameCadastroClientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel3)
                    .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jIFrameCadastroClientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel4)
                    .addComponent(cbStatus, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jIFrameCadastroClientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(rbMasculino)
                    .addComponent(rbFeminino))
                .addGap(5, 5, 5)
                .addGroup(jIFrameCadastroClientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel6)
                    .addComponent(cbCultura)
                    .addComponent(cdSaude)
                    .addComponent(cdEsporte))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jIFrameCadastroClientesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnSair, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnExecuta))
                .addGap(43, 43, 43))
        );

        jIFrameCadastroClientes.setBounds(0, 0, 400, 280);
        deskTopPrincipal.add(jIFrameCadastroClientes, javax.swing.JLayeredPane.DEFAULT_LAYER);

        menuArquivo.setMnemonic('A');
        menuArquivo.setText("Arquivo");
        menuArquivo.setToolTipText("Ações de cadastros");
        menuArquivo.setName("menuArquivo"); // NOI18N

        menuNovo.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N, java.awt.event.InputEvent.CTRL_MASK));
        menuNovo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imgs/icones/NEW.gif"))); // NOI18N
        menuNovo.setMnemonic('N');
        menuNovo.setToolTipText("Cria um novo cadastro");
        menuNovo.setLabel("Novo");
        menuNovo.setName("menuNovo"); // NOI18N
        menuNovo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuNovoActionPerformed(evt);
            }
        });
        menuArquivo.add(menuNovo);

        menuAbrir.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.CTRL_MASK));
        menuAbrir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imgs/icones/OPEN.gif"))); // NOI18N
        menuAbrir.setMnemonic('A');
        menuAbrir.setText("Abrir");
        menuAbrir.setToolTipText("Abre um documento existente");
        menuAbrir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuAbrirActionPerformed(evt);
            }
        });
        menuArquivo.add(menuAbrir);

        menuSalvar.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK));
        menuSalvar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imgs/icones/SAVE.gif"))); // NOI18N
        menuSalvar.setMnemonic('S');
        menuSalvar.setText("Salvar");
        menuSalvar.setToolTipText("Salva o documento atual");
        menuSalvar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuSalvarActionPerformed(evt);
            }
        });
        menuArquivo.add(menuSalvar);
        menuArquivo.add(separadorMenuArquivo);

        menuSair.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.CTRL_MASK));
        menuSair.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imgs/icones/CLOSE.gif"))); // NOI18N
        menuSair.setMnemonic('r');
        menuSair.setText("Sair");
        menuSair.setToolTipText("Sai do programa");
        menuSair.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuSairActionPerformed(evt);
            }
        });
        menuArquivo.add(menuSair);

        barraMenu.add(menuArquivo);

        menuCadastro.setMnemonic('C');
        menuCadastro.setText("Cadastro");
        menuCadastro.setToolTipText("Cadastro de clientes e functionários");
        menuCadastro.setName("menuCadastro"); // NOI18N

        menuCliente.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.CTRL_MASK));
        menuCliente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imgs/icones/cliente.gif"))); // NOI18N
        menuCliente.setMnemonic('C');
        menuCliente.setText("Cliente");
        menuCliente.setToolTipText("Cadastro de clientes");
        menuCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuClienteActionPerformed(evt);
            }
        });
        menuCadastro.add(menuCliente);
        menuCadastro.add(separadorMenuCadastro);

        menuFuncionario.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F, java.awt.event.InputEvent.CTRL_MASK));
        menuFuncionario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imgs/icones/capacete.gif"))); // NOI18N
        menuFuncionario.setMnemonic('F');
        menuFuncionario.setText("Funcionário");
        menuFuncionario.setToolTipText("Cadastro de functionários");
        menuFuncionario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuFuncionarioActionPerformed(evt);
            }
        });
        menuCadastro.add(menuFuncionario);

        barraMenu.add(menuCadastro);

        menuConsulta.setText("Consulta");
        menuConsulta.setToolTipText("Consultas registros de clientes e funcionários");
        menuConsulta.setName("menuConsulta"); // NOI18N

        menuConsultaCliente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imgs/icones/cliente.gif"))); // NOI18N
        menuConsultaCliente.setMnemonic('C');
        menuConsultaCliente.setText("Cliente");
        menuConsultaCliente.setToolTipText("Consultas clientes");

        menuClienteCodigo.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.CTRL_MASK));
        menuClienteCodigo.setMnemonic('C');
        menuClienteCodigo.setText("Por Código");
        menuClienteCodigo.setToolTipText("Consulta por códio do cliente");
        menuConsultaCliente.add(menuClienteCodigo);

        menuClienteNome.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N, java.awt.event.InputEvent.CTRL_MASK));
        menuClienteNome.setMnemonic('N');
        menuClienteNome.setText("Por Nome");
        menuClienteNome.setToolTipText("Consulta por nome do cliente");
        menuConsultaCliente.add(menuClienteNome);

        menuConsulta.add(menuConsultaCliente);
        menuConsulta.add(separadorMenuConsulta);

        menuConsultaFuncionario.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imgs/icones/capacete.gif"))); // NOI18N
        menuConsultaFuncionario.setText("Funcionário");
        menuConsultaFuncionario.setToolTipText("Consultas de funcionários");

        menuFuncionaroNome.setMnemonic('N');
        menuFuncionaroNome.setText("Por Nome");
        menuConsultaFuncionario.add(menuFuncionaroNome);

        menuFuncionarioSalario.setMnemonic('S');
        menuFuncionarioSalario.setText("Por Salário");
        menuConsultaFuncionario.add(menuFuncionarioSalario);

        menuConsulta.add(menuConsultaFuncionario);

        barraMenu.add(menuConsulta);

        menuAjuda.setMnemonic('j');
        menuAjuda.setText("Ajuda");
        menuAjuda.setToolTipText("Ajuda sobre o sistema");
        menuAjuda.setName("menuAjuda"); // NOI18N

        menuDuvidas.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_D, java.awt.event.InputEvent.CTRL_MASK));
        menuDuvidas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imgs/icones/HELP.gif"))); // NOI18N
        menuDuvidas.setMnemonic('D');
        menuDuvidas.setText("Dúvidas");
        menuDuvidas.setToolTipText("Dúvidas frequentes");
        menuAjuda.add(menuDuvidas);

        menuSobre.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK));
        menuSobre.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imgs/icones/sobre.gif"))); // NOI18N
        menuSobre.setMnemonic('S');
        menuSobre.setText("Sobre");
        menuSobre.setToolTipText("Informações sobre o sistema");
        menuSobre.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuSobreActionPerformed(evt);
            }
        });
        menuAjuda.add(menuSobre);

        barraMenu.add(menuAjuda);

        setJMenuBar(barraMenu);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(deskTopPrincipal, javax.swing.GroupLayout.DEFAULT_SIZE, 0, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(deskTopPrincipal, javax.swing.GroupLayout.DEFAULT_SIZE, 0, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void menuNovoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuNovoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_menuNovoActionPerformed

    private void menuAbrirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuAbrirActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_menuAbrirActionPerformed

    private void menuSalvarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuSalvarActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_menuSalvarActionPerformed

    private void menuFuncionarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuFuncionarioActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_menuFuncionarioActionPerformed

    private void menuSairActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuSairActionPerformed
        System.exit(0);
    }//GEN-LAST:event_menuSairActionPerformed

    private void menuClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuClienteActionPerformed
        jIFrameCadastroClientes.setSize(deskTopPrincipal.getWidth(), deskTopPrincipal.getHeight());
        jIFrameCadastroClientes.setVisible(true);
    }//GEN-LAST:event_menuClienteActionPerformed

    
    private void menuSobreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuSobreActionPerformed
        JOptionPane.showMessageDialog(this, "Desenvolvido por: William Guimarães\n"
                                            + "Linguagem de programação\n"
                                            + "Ano: 2013\n"
                                            + "Programa para gerenciamento de clientes e funcionários", 
                                            "Informações do aplicativo", 
                                            JOptionPane.INFORMATION_MESSAGE);
    }//GEN-LAST:event_menuSobreActionPerformed

    private void menuPopUpAbrirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuPopUpAbrirActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_menuPopUpAbrirActionPerformed

    private void popUpMenuSairActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_popUpMenuSairActionPerformed
        System.exit(0);
    }//GEN-LAST:event_popUpMenuSairActionPerformed

    private void popUpMenuClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_popUpMenuClienteActionPerformed
        jIFrameCadastroClientes.setVisible(true);
    }//GEN-LAST:event_popUpMenuClienteActionPerformed

    private void formMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_formMouseReleased
        if(evt.isPopupTrigger()){
            menuPopUp1.show(evt.getComponent(), evt.getX(), evt.getY());
        }
    }//GEN-LAST:event_formMouseReleased

    private void btnAtualizaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAtualizaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnAtualizaActionPerformed

    private void btnDeletaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDeletaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnDeletaActionPerformed

    private void btnAjudaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAjudaActionPerformed
        JOptionPane.showMessageDialog(this, "Clique em inserir, atualizar, ou deletar clientes", "Tela Ajuda", JOptionPane.INFORMATION_MESSAGE);
    }//GEN-LAST:event_btnAjudaActionPerformed

    private void cbStatusActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbStatusActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_cbStatusActionPerformed

    private void btnSairActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSairActionPerformed
        jIFrameCadastroClientes.setVisible(false);
    }//GEN-LAST:event_btnSairActionPerformed

    private void cbCulturaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbCulturaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_cbCulturaActionPerformed

    private void btnInsereActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnInsereActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnInsereActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(DemoMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(DemoMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(DemoMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(DemoMenu.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the form
         */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new DemoMenu().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuBar barraMenu;
    private javax.swing.JButton btnAjuda;
    private javax.swing.JButton btnAtualiza;
    private javax.swing.JButton btnDeleta;
    private javax.swing.JButton btnExecuta;
    private javax.swing.JButton btnInsere;
    private javax.swing.JButton btnSair;
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JComboBox cbCodigo;
    private javax.swing.JCheckBox cbCultura;
    private javax.swing.JComboBox cbStatus;
    private javax.swing.JCheckBox cdEsporte;
    private javax.swing.JCheckBox cdSaude;
    private javax.swing.JDesktopPane deskTopPrincipal;
    private javax.swing.JInternalFrame jIFrameCadastroClientes;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JTextField jTextField2;
    private javax.swing.JPanel jpMenu;
    private javax.swing.JMenuItem menuAbrir;
    private javax.swing.JMenu menuAjuda;
    private javax.swing.JMenu menuArquivo;
    private javax.swing.JMenu menuCadastro;
    private javax.swing.JMenuItem menuCliente;
    private javax.swing.JMenuItem menuClienteCodigo;
    private javax.swing.JMenuItem menuClienteNome;
    private javax.swing.JMenu menuConsulta;
    private javax.swing.JMenu menuConsultaCliente;
    private javax.swing.JMenu menuConsultaFuncionario;
    private javax.swing.JMenuItem menuDuvidas;
    private javax.swing.JMenuItem menuFuncionario;
    private javax.swing.JMenuItem menuFuncionarioSalario;
    private javax.swing.JMenuItem menuFuncionaroNome;
    private javax.swing.JMenuItem menuNovo;
    private javax.swing.JPopupMenu menuPopUp1;
    private javax.swing.JMenuItem menuPopUpAbrir;
    private javax.swing.JMenuItem menuSair;
    private javax.swing.JMenuItem menuSalvar;
    private javax.swing.JMenuItem menuSobre;
    private javax.swing.JMenuItem popUpMenuCliente;
    private javax.swing.JMenuItem popUpMenuFuncionario;
    private javax.swing.JMenuItem popUpMenuSair;
    private javax.swing.JPopupMenu.Separator popUpMenuSeparador;
    private javax.swing.JPopupMenu.Separator popUpMenuSeparador1;
    private javax.swing.JRadioButton rbFeminino;
    private javax.swing.JRadioButton rbMasculino;
    private javax.swing.JPopupMenu.Separator separadorMenuArquivo;
    private javax.swing.JPopupMenu.Separator separadorMenuCadastro;
    private javax.swing.JPopupMenu.Separator separadorMenuConsulta;
    // End of variables declaration//GEN-END:variables
}
